<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="icon" href="../images/favicon-20190426051725675.ico" type="image/x-icon">
    <title>AI泡悠智能茶机管理后台</title>
    <link rel="stylesheet" href="../css/login.css">
    <script src="https://at.alicdn.com/t/font_895159_8lbk7qwrha5.js"></script>
    <script src="../js/jquery-2.1.1.min.js"></script>
    <script src="../js/layui/layui.all.js"></script>
    <link rel="stylesheet" href="../js/layui/css/layui.css">
    <style type="text/css">
        .icon {
            width: 1em;
            height: 1em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
            color: #E4E4E4;
        }
    </style>
</head>

<body>
    <div class="login-page">
        <header class="header">佲家智微</header>
        <div class="login-box">
            <div class="logo-box">
                <img src="../images/logo.png" alt="">
            </div>
            <div class="sty-name">AI泡悠智能茶机管理后台</div>
            <!-- <div class="sty-name">零售管理系统</div> -->
            <form class="layui-form" action="/">
                <div class="from">
                    <div class="from-item">
                        <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-shouji"></use>
                    </svg>
                        <input type="text" name="phone" required lay-verify="required|phone" maxlength="11" placeholder="请输入手机号">
                    </div>
                    <div class="from-item">
                        <svg class="icon" aria-hidden="true">
                        <use xlink:href="#icon-mima"></use>
                    </svg>
                        <input type="password" name="pwd" required lay-verify="required" placeholder="请输入密码">
                    </div>
                    <div class="my-check" style=" color: rgba(0, 0, 0, 0.65);">
                        <input type="checkbox" name="remember" title="记住七天" lay-skin="primary" checked>
                    </div>
                    <div style="margin-top:20px;">
                        <button type="submit" class="login-btn">登录</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</body>
<script>
    layui.use('form', function() {
        var form = layui.form;
        form.render();
        //监听提交
        // form.on('submit(loginFrom)', function(data) {
        //     // layer.msg(JSON.stringify(data.field));

        //     if (data.field.phone != '13123132003') {
        //         layer.msg('该账户不存在，请联系管理员', {
        //             icon: 5
        //         });
        //     } else if (data.field.pwd != '123456') {
        //         layer.msg('密码错误', {
        //             icon: 5
        //         });
        //     } else {
        //         window.location.href = "./index.html";
        //     }
        //     return false;
        // });
    });
</script>

</html>